package com.example.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Author:yanghua
 * Date:2023/10/7 21:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id; // id是自动增加的
    private String numId; // 账号（工号）
    private String password; // 密码
    private String name; // 真实姓名
    private String sex; // 性别
    private String positionId; // 职位id
    private String phone; // 联系方式
    private Integer del; // 是否删除
}
